package com.yizhuoyan.his.webapi.controller;

<<<<<<< HEAD
import com.yizhuoyan.his.ao.AddCaseCheckAo;
import com.yizhuoyan.his.ao.CaseCheckProjectAo;
import com.yizhuoyan.his.ao.UpdateCaseCheckAo;
=======
>>>>>>> 879d7d2a12da0e8937bf4a402ba2aaa267e41352
import com.yizhuoyan.his.dto.JSONResponse;
import com.yizhuoyan.his.dto.SysAccountAuthorizationResult;
import com.yizhuoyan.his.service.doctor.medical.CaseCheckService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
<<<<<<< HEAD
import org.springframework.web.bind.annotation.RequestMapping;
=======
>>>>>>> 879d7d2a12da0e8937bf4a402ba2aaa267e41352
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
<<<<<<< HEAD
import java.util.List;

@RestController
@Slf4j
@RequestMapping("/api/casecheck")
public class CaseCheckRecordControllerWCj {

    @Autowired
    CaseCheckService service;

    @PostMapping("/querycase")
    public JSONResponse querycase(Long medicalRecordId, HttpServletRequest req)throws Exception{

        List<CaseCheckProjectAo> caseCheckProjectAos = service.queryCaseCheck(medicalRecordId);

        return JSONResponse.ok(caseCheckProjectAos);
    }

    @PostMapping("/modifystate")
    public JSONResponse modifystate(Long medicalRecordId, HttpServletRequest req)throws Exception{

        boolean state = service.modifyCaseCheckState(medicalRecordId);

        return JSONResponse.ok(state);
    }

    @PostMapping("/modifyresult")
    public JSONResponse modifyresult(UpdateCaseCheckAo ao, HttpServletRequest req)throws Exception{

        boolean state = service.modifyCaseCheckResult(ao);

        return JSONResponse.ok(state);
    }

    @PostMapping("/addcasemedical")
    public JSONResponse addcasemedical(AddCaseCheckAo ao, HttpServletRequest req)throws Exception{

        boolean state = service.addCaseCheck(ao);

        return JSONResponse.ok(state);
    }
=======

@RestController
@Slf4j
public class CaseCheckRecordControllerWCj {

    @Autowired
    CaseCheckService ccs;


>>>>>>> 879d7d2a12da0e8937bf4a402ba2aaa267e41352


}
